import tornado.ioloop
import tornado.web
from tornado.options import parse_command_line
from custom import create_application


def run_server():
    parse_command_line()

    create_application()
    print('server start')
    tornado.ioloop.IOLoop.instance().start()

if __name__ == '__main__':
    run_server()
